import Vue from 'vue'
import Vuex from 'vuex'
import admin from './admin'
import shop from './shop'
import goods from './goods'
Vue.use(Vuex)

const state={
    load:false,  //是否加载
    pageSum:1,  //总页数

}
const mutations={
    CHANGE_TRUE(state,buf){
        state.load=buf
    },
    CHANGE_PAGE_SUM(state,pageSum){
        state.pageSum=pageSum
    },
}
const modules={
    admin,
    shop,
    goods
}

export default new Vuex.Store({
    state,
    mutations,
    modules,
})